﻿@using MvcContrib.UI.Grid;
@using MvcContrib.Pagination;
@using MvcContrib.Sorting;
@using MvcContrib.UI.Pager;
@using Shp.Web.Models.Domain;
@using Shp.Web.Models.GridModels;
@using MvcContrib.Shp.UI.Themed;
@using MvcContrib.Shp.UI;

@model IPagination<Customer>

@{
    ViewBag.Title = "Out-Of-The-Box MVCContrib Grid";
}

<h2>Out-Of-The-Box MVCContrib Grid</h2>

<p>
    @Html.ActionLink("Return to Grid Index", "Index")
</p>

@Html.MvcContrib().Grid(Model).WithModel(new CustomerGridModel()).Sort(ViewData["sort"] as GridSortOptions).Attributes(id => "grid", style => "width: 100%;")
@Html.MvcContrib().Pager(Model)

<p>
    @Html.ActionLink("Return to Grid Index", "Index", null, new { @class = "btn" })
</p>